package com.dingreading.cloud.soms.service;

import com.dingreading.cloud.soms.dto.StoreProductLogDto;
import com.dingreading.cloud.soms.entity.StoreProductLogs;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-09-11
 */
public interface StoreProductLogsService extends IService<StoreProductLogs> {

    int dropByProductUid(String storeUid, String uid);

    List<StoreProductLogs> listByStoreUidAndProductUid(String storeUid, String uid);

    List<StoreProductLogDto> dtoListByStoreUidAndProductUid(String storeUid, String uid);

    List<StoreProductLogs> listByProductUids(List<String> productUids);

    List<StoreProductLogDto> dtoListByProductUidIn(List<String> productUids);

    List<StoreProductLogs> listByUids(List<String> uids);

    boolean haveProjectUid(String storeUid, String projectUid);

    void updateEnabledByProductUid(String storeUid, String productUid, Integer enabled, String staffUid, String staffName);

}
